home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / HYP / R-S / Script Changer / card_2834.txt < prev    next >
Encoding:
Text File  |  1989-02-26  |  29.8 KB  |  1,387 lines

  1. -- card: 2834 from stack: in
  2. -- bmap block id: 3513
  3. -- flags: 0000
  4. -- background id: 2798
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (button)
  9. -- low flags: 00
  10. -- high flags: 8004
  11. -- rect: left=5 top=24 right=40 bottom=134
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Pick a Stack
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   global stackname
  23.   global totcard
  24.   global totcardbut
  25.   global totcardfld
  26.   global totback
  27.   global totbackbut
  28.   global totbackfld
  29.   global numcard
  30.   global numcardbut
  31.   global numcardfld
  32.   global numback
  33.   global numbackbut
  34.   global numbackfld
  35.   global ind
  36.   global typewrite
  37.  
  38.   put the long name of this stack into tempname
  39.   go stack the stack you wish to process
  40.   set lockscreen to true
  41.  
  42.   put long name of this stack into stackname
  43.   put the number of cards into totcard
  44.   put the number of backgrounds into totback
  45.  
  46.   repeat with count = 1 to totcard
  47.     go to card count
  48.     put number of card buttons into item count of totcardbut
  49.     put number of card fields  into item count of totcardfld
  50.   end repeat
  51.  
  52.   repeat with count = 1 to  totback
  53.     go to background count
  54.     put number of background buttons into item count of totbackbut
  55.     put number of background fields  into item count of totbackfld
  56.   end repeat
  57.  
  58.   go tempname
  59.  
  60.   put stackname into card field "StackName"
  61.  
  62.   put           totback    into card field "Totback"
  63.   put item 1 of totbackbut into card field "Totbackbut"
  64.   put item 1 of totbackfld into card field "Totbackfld"
  65.  
  66.   put           totcard    into card field "Totcard"
  67.   put item 1 of totcardbut into card field "Totcardbut"
  68.   put item 1 of totcardfld into card field "Totcardfld"
  69.  
  70.   put 1 into numback
  71.   put numback into card field "Numback"
  72.  
  73.   if item 1 of totbackbut = 0 then
  74.     put 0     into numbackbut
  75.   else
  76.     put 1     into numbackbut
  77.   end if
  78.   put numbackbut into card field "Numbackbut"
  79.  
  80.   if item 1 of totbackfld = 0 then
  81.     put 0     into numbackfld
  82.   else
  83.     put 1     into numbackfld
  84.   end if
  85.   put numbackfld into card field "Numbackfld"
  86.  
  87.   put 1 into numcard
  88.   put numcard into card field "Numcard"
  89.  
  90.   if item 1 of totcardbut = 0 then
  91.     put 0     into numcardbut
  92.   else
  93.     put 1     into numcardbut
  94.   end if
  95.   put numcardbut into card field "Numcardbut"
  96.  
  97.   if item 1 of totcardfld = 0 then
  98.     put 0     into numcardfld
  99.   else
  100.     put 1     into numcardfld
  101.   end if
  102.   put numcardfld into card field "Numcardfld"
  103.  
  104.   put 1 into ind
  105.   set the hilite of card button "Stack" to true
  106.   set the hilite of card button "Background" to false
  107.   set the hilite of card button "Background Button" to false
  108.   set the hilite of card button "Background Field" to false
  109.   set the hilite of card button "Card" to false
  110.   set the hilite of card button "Card Button" to false
  111.   set the hilite of card button "Card Field" to false
  112.  
  113.   put 2 into typewrite
  114.   set the hilite of card button "appendbefore" to false
  115.   set the hilite of card button "overwrite" to true
  116.   set the hilite of card button "appendafter" to false
  117.  
  118.  
  119.   set userlevel to 5
  120.   show menubar
  121.   hide message
  122.   set lockscreen to false
  123.  
  124. end mouseUp
  125.  
  126.  
  127.  
  128. -- part 2 (field)
  129. -- low flags: 01
  130. -- high flags: 0000
  131. -- rect: left=135 top=23 right=42 bottom=507
  132. -- title width / last selected line: 0
  133. -- icon id / first selected line: 0 / 0
  134. -- text alignment: 0
  135. -- font id: 0
  136. -- text size: 12
  137. -- style flags: 0
  138. -- line height: 16
  139. -- part name: StackName
  140.  
  141.  
  142. -- part 3 (field)
  143. -- low flags: 00
  144. -- high flags: 0007
  145. -- rect: left=152 top=112 right=337 bottom=505
  146. -- title width / last selected line: 0
  147. -- icon id / first selected line: 0 / 0
  148. -- text alignment: 0
  149. -- font id: 3
  150. -- text size: 9
  151. -- style flags: 0
  152. -- line height: 12
  153. -- part name: Script
  154.  
  155.  
  156. -- part 4 (field)
  157. -- low flags: 01
  158. -- high flags: 0000
  159. -- rect: left=232 top=44 right=63 bottom=262
  160. -- title width / last selected line: 0
  161. -- icon id / first selected line: 0 / 0
  162. -- text alignment: 0
  163. -- font id: 0
  164. -- text size: 12
  165. -- style flags: 0
  166. -- line height: 16
  167. -- part name: Totback
  168.  
  169.  
  170. -- part 5 (field)
  171. -- low flags: 01
  172. -- high flags: 0000
  173. -- rect: left=468 top=45 right=64 bottom=503
  174. -- title width / last selected line: 0
  175. -- icon id / first selected line: 0 / 0
  176. -- text alignment: 0
  177. -- font id: 0
  178. -- text size: 12
  179. -- style flags: 0
  180. -- line height: 16
  181. -- part name: Totcard
  182.  
  183.  
  184. -- part 6 (button)
  185. -- low flags: 00
  186. -- high flags: 8006
  187. -- rect: left=5 top=110 right=125 bottom=153
  188. -- title width / last selected line: 0
  189. -- icon id / first selected line: 0 / 0
  190. -- text alignment: 1
  191. -- font id: 0
  192. -- text size: 12
  193. -- style flags: 0
  194. -- line height: 16
  195. -- part name: Stack
  196. ----- HyperTalk script -----
  197. on mouseUp
  198.   global ind
  199.   put 1 into ind
  200.   set the hilite of card button "Stack" to true
  201.   set the hilite of card button "Background" to false
  202.   set the hilite of card button "Background Button" to false
  203.   set the hilite of card button "Background Field" to false
  204.   set the hilite of card button "Card" to false
  205.   set the hilite of card button "Card Button" to false
  206.   set the hilite of card button "Card Field" to false
  207. end mouseup
  208.  
  209.  
  210. -- part 7 (button)
  211. -- low flags: 00
  212. -- high flags: 8006
  213. -- rect: left=5 top=124 right=139 bottom=153
  214. -- title width / last selected line: 0
  215. -- icon id / first selected line: 0 / 0
  216. -- text alignment: 1
  217. -- font id: 0
  218. -- text size: 12
  219. -- style flags: 0
  220. -- line height: 16
  221. -- part name: Background
  222. ----- HyperTalk script -----
  223. on mouseUp
  224.   global ind
  225.   put 2 into ind
  226.   set the hilite of card button "Stack" to false
  227.   set the hilite of card button "Background" to true
  228.   set the hilite of card button "Background Button" to false
  229.   set the hilite of card button "Background Field" to false
  230.   set the hilite of card button "Card" to false
  231.   set the hilite of card button "Card Button" to false
  232.   set the hilite of card button "Card Field" to false
  233. end mouseup
  234.  
  235.  
  236. -- part 10 (field)
  237. -- low flags: 01
  238. -- high flags: 0000
  239. -- rect: left=162 top=44 right=63 bottom=187
  240. -- title width / last selected line: 0
  241. -- icon id / first selected line: 0 / 0
  242. -- text alignment: 0
  243. -- font id: 0
  244. -- text size: 12
  245. -- style flags: 0
  246. -- line height: 16
  247. -- part name: Numback
  248.  
  249.  
  250. -- part 12 (button)
  251. -- low flags: 00
  252. -- high flags: 0000
  253. -- rect: left=150 top=44 right=54 bottom=161
  254. -- title width / last selected line: 0
  255. -- icon id / first selected line: 0 / 0
  256. -- text alignment: 1
  257. -- font id: 0
  258. -- text size: 12
  259. -- style flags: 0
  260. -- line height: 16
  261. -- part name: aa
  262. ----- HyperTalk script -----
  263. on mousestilldown
  264.   global totback
  265.   global totbackbut
  266.   global totbackfld
  267.   global numback
  268.   global numbackbut
  269.   global numbackfld
  270.  
  271.   if  numback < totback then
  272.     add 1 to numback
  273.     put numback into card field "Numback"
  274.   end if
  275.  
  276. end mousestilldown
  277.  
  278. on mouseup
  279.   global totback
  280.   global totbackbut
  281.   global totbackfld
  282.   global numback
  283.   global numbackbut
  284.   global numbackfld
  285.  
  286.   put item numback of totbackfld into card field "Totbackfld"
  287.   if  item numback of totbackfld > 0 then
  288.     put 1 into numbackfld
  289.   else
  290.     put 0 into numbackfld
  291.   end if
  292.   put numbackfld into card field "Numbackfld"
  293.  
  294.   put item numback of totbackbut into card field "Totbackbut"
  295.   if  item numback of totbackbut > 0 then
  296.     put 1 into numbackbut
  297.   else
  298.     put 0 into numbackbut
  299.   end if
  300.   put numbackbut into card field "Numbackbut"
  301. end mouseup
  302.  
  303.  
  304.  
  305.  
  306. -- part 13 (button)
  307. -- low flags: 00
  308. -- high flags: 0000
  309. -- rect: left=150 top=53 right=63 bottom=161
  310. -- title width / last selected line: 0
  311. -- icon id / first selected line: 0 / 0
  312. -- text alignment: 1
  313. -- font id: 0
  314. -- text size: 12
  315. -- style flags: 0
  316. -- line height: 16
  317. -- part name: bb
  318. ----- HyperTalk script -----
  319. on mousestilldown
  320.   global totback
  321.   global totbackbut
  322.   global totbackfld
  323.   global numback
  324.   global numbackbut
  325.   global numbackfld
  326.  
  327.   if numback > 1 then
  328.     subtract 1 from numback
  329.     put numback into card field "Numback"
  330.   end if
  331.  
  332. end mousestilldown
  333.  
  334. on mouseup
  335.   global totback
  336.   global totbackbut
  337.   global totbackfld
  338.   global numback
  339.   global numbackbut
  340.   global numbackfld
  341.  
  342.   put item numback of totbackfld into card field "Totbackfld"
  343.   if  item numback of totbackfld > 0 then
  344.     put 1 into numbackfld
  345.   else
  346.     put 0 into numbackfld
  347.   end if
  348.   put numbackfld into card field "Numbackfld"
  349.  
  350.   put item numback of totbackbut into card field "Totbackbut"
  351.   if  item numback of totbackbut > 0 then
  352.     put 1 into numbackbut
  353.   else
  354.     put 0 into numbackbut
  355.   end if
  356.   put numbackbut into card field "Numbackbut"
  357. end mouseup
  358.  
  359.  
  360.  
  361. -- part 14 (field)
  362. -- low flags: 01
  363. -- high flags: 0000
  364. -- rect: left=395 top=45 right=64 bottom=424
  365. -- title width / last selected line: 0
  366. -- icon id / first selected line: 0 / 0
  367. -- text alignment: 0
  368. -- font id: 0
  369. -- text size: 12
  370. -- style flags: 0
  371. -- line height: 16
  372. -- part name: Numcard
  373.  
  374.  
  375. -- part 17 (button)
  376. -- low flags: 00
  377. -- high flags: 8006
  378. -- rect: left=5 top=166 right=181 bottom=153
  379. -- title width / last selected line: 0
  380. -- icon id / first selected line: 0 / 0
  381. -- text alignment: 1
  382. -- font id: 0
  383. -- text size: 12
  384. -- style flags: 0
  385. -- line height: 16
  386. -- part name: Card
  387. ----- HyperTalk script -----
  388. on mouseUp
  389.   global ind
  390.   put 5 into ind
  391.   set the hilite of card button "Stack" to false
  392.   set the hilite of card button "Background" to false
  393.   set the hilite of card button "Background Button" to false
  394.   set the hilite of card button "Background Field" to false
  395.   set the hilite of card button "Card" to true
  396.   set the hilite of card button "Card Button" to false
  397.   set the hilite of card button "Card Field" to false
  398. end mouseup
  399.  
  400.  
  401. -- part 18 (field)
  402. -- low flags: 00
  403. -- high flags: 0000
  404. -- rect: left=232 top=64 right=83 bottom=262
  405. -- title width / last selected line: 0
  406. -- icon id / first selected line: 0 / 0
  407. -- text alignment: 0
  408. -- font id: 0
  409. -- text size: 12
  410. -- style flags: 0
  411. -- line height: 16
  412. -- part name: Totbackbut
  413.  
  414.  
  415. -- part 19 (field)
  416. -- low flags: 00
  417. -- high flags: 0000
  418. -- rect: left=232 top=84 right=103 bottom=262
  419. -- title width / last selected line: 0
  420. -- icon id / first selected line: 0 / 0
  421. -- text alignment: 0
  422. -- font id: 0
  423. -- text size: 12
  424. -- style flags: 0
  425. -- line height: 16
  426. -- part name: Totbackfld
  427.  
  428.  
  429. -- part 20 (field)
  430. -- low flags: 00
  431. -- high flags: 0000
  432. -- rect: left=468 top=85 right=104 bottom=498
  433. -- title width / last selected line: 0
  434. -- icon id / first selected line: 0 / 0
  435. -- text alignment: 0
  436. -- font id: 0
  437. -- text size: 12
  438. -- style flags: 0
  439. -- line height: 16
  440. -- part name: Totcardfld
  441.  
  442.  
  443. -- part 21 (field)
  444. -- low flags: 00
  445. -- high flags: 0000
  446. -- rect: left=468 top=65 right=84 bottom=498
  447. -- title width / last selected line: 0
  448. -- icon id / first selected line: 0 / 0
  449. -- text alignment: 0
  450. -- font id: 0
  451. -- text size: 12
  452. -- style flags: 0
  453. -- line height: 16
  454. -- part name: Totcardbut
  455.  
  456.  
  457. -- part 25 (field)
  458. -- low flags: 01
  459. -- high flags: 0000
  460. -- rect: left=162 top=64 right=83 bottom=187
  461. -- title width / last selected line: 0
  462. -- icon id / first selected line: 0 / 0
  463. -- text alignment: 0
  464. -- font id: 0
  465. -- text size: 12
  466. -- style flags: 0
  467. -- line height: 16
  468. -- part name: Numbackbut
  469.  
  470.  
  471. -- part 26 (field)
  472. -- low flags: 01
  473. -- high flags: 0000
  474. -- rect: left=163 top=84 right=103 bottom=188
  475. -- title width / last selected line: 0
  476. -- icon id / first selected line: 0 / 0
  477. -- text alignment: 0
  478. -- font id: 0
  479. -- text size: 12
  480. -- style flags: 0
  481. -- line height: 16
  482. -- part name: Numbackfld
  483.  
  484.  
  485. -- part 27 (field)
  486. -- low flags: 01
  487. -- high flags: 0000
  488. -- rect: left=395 top=65 right=84 bottom=424
  489. -- title width / last selected line: 0
  490. -- icon id / first selected line: 0 / 0
  491. -- text alignment: 0
  492. -- font id: 0
  493. -- text size: 12
  494. -- style flags: 0
  495. -- line height: 16
  496. -- part name: Numcardbut
  497.  
  498.  
  499. -- part 28 (field)
  500. -- low flags: 01
  501. -- high flags: 0000
  502. -- rect: left=395 top=85 right=104 bottom=424
  503. -- title width / last selected line: 0
  504. -- icon id / first selected line: 0 / 0
  505. -- text alignment: 0
  506. -- font id: 0
  507. -- text size: 12
  508. -- style flags: 0
  509. -- line height: 16
  510. -- part name: Numcardfld
  511.  
  512.  
  513. -- part 29 (button)
  514. -- low flags: 00
  515. -- high flags: 0000
  516. -- rect: left=150 top=64 right=74 bottom=161
  517. -- title width / last selected line: 0
  518. -- icon id / first selected line: 0 / 0
  519. -- text alignment: 1
  520. -- font id: 0
  521. -- text size: 12
  522. -- style flags: 0
  523. -- line height: 16
  524. -- part name: aa
  525. ----- HyperTalk script -----
  526. on mousestilldown
  527.   global totback
  528.   global totbackbut
  529.   global totbackfld
  530.   global numback
  531.   global numbackbut
  532.   global numbackfld
  533.  
  534.   if  numbackbut < item numback of totbackbut then
  535.     add 1 to numbackbut
  536.     put numbackbut into card field "Numbackbut"
  537.   end if
  538.  
  539. end mousestilldown
  540.  
  541.  
  542.  
  543.  
  544. -- part 30 (button)
  545. -- low flags: 00
  546. -- high flags: 0000
  547. -- rect: left=150 top=73 right=83 bottom=161
  548. -- title width / last selected line: 0
  549. -- icon id / first selected line: 0 / 0
  550. -- text alignment: 1
  551. -- font id: 0
  552. -- text size: 12
  553. -- style flags: 0
  554. -- line height: 16
  555. -- part name: bb
  556. ----- HyperTalk script -----
  557. on mousestilldown
  558.   global totback
  559.   global totbackbut
  560.   global totbackfld
  561.   global numback
  562.   global numbackbut
  563.   global numbackfld
  564.  
  565.   if numbackbut > 1 then
  566.     subtract 1 from numbackbut
  567.     put numbackbut into card field "Numbackbut"
  568.   end if
  569.  
  570. end mousestilldown
  571.  
  572.  
  573.  
  574.  
  575. -- part 33 (button)
  576. -- low flags: 00
  577. -- high flags: 0000
  578. -- rect: left=150 top=84 right=94 bottom=161
  579. -- title width / last selected line: 0
  580. -- icon id / first selected line: 0 / 0
  581. -- text alignment: 1
  582. -- font id: 0
  583. -- text size: 12
  584. -- style flags: 0
  585. -- line height: 16
  586. -- part name: aa
  587. ----- HyperTalk script -----
  588. on mousestilldown
  589.   global totback
  590.   global totbackbut
  591.   global totbackfld
  592.   global numback
  593.   global numbackbut
  594.   global numbackfld
  595.  
  596.   if  numbackfld < item numback of totbackfld then
  597.     add 1 to numbackfld
  598.     put numbackfld into card field "Numbackfld"
  599.   end if
  600.  
  601. end mousestilldown
  602.  
  603.  
  604.  
  605.  
  606. -- part 34 (button)
  607. -- low flags: 00
  608. -- high flags: 0000
  609. -- rect: left=150 top=93 right=103 bottom=161
  610. -- title width / last selected line: 0
  611. -- icon id / first selected line: 0 / 0
  612. -- text alignment: 1
  613. -- font id: 0
  614. -- text size: 12
  615. -- style flags: 0
  616. -- line height: 16
  617. -- part name: bb
  618. ----- HyperTalk script -----
  619. on mousestilldown
  620.   global totback
  621.   global totbackbut
  622.   global totbackfld
  623.   global numback
  624.   global numbackbut
  625.   global numbackfld
  626.  
  627.   if numbackfld > 1 then
  628.     subtract 1 from numbackfld
  629.     put numbackfld into card field "Numbackfld"
  630.   end if
  631.  
  632. end mousestilldown
  633.  
  634.  
  635.  
  636.  
  637. -- part 35 (button)
  638. -- low flags: 00
  639. -- high flags: 0000
  640. -- rect: left=383 top=45 right=55 bottom=394
  641. -- title width / last selected line: 0
  642. -- icon id / first selected line: 0 / 0
  643. -- text alignment: 1
  644. -- font id: 0
  645. -- text size: 12
  646. -- style flags: 0
  647. -- line height: 16
  648. -- part name: aa
  649. ----- HyperTalk script -----
  650. on mousestilldown
  651.   global totcard
  652.   global totcardbut
  653.   global totcardfld
  654.   global numcard
  655.   global numcardbut
  656.   global numcardfld
  657.  
  658.   if numcard < totcard then
  659.     add 1 to numcard
  660.     put numcard into card field "Numcard"
  661.   end if
  662.  
  663. end mousestilldown
  664.  
  665. on mouseup
  666.   global totcard
  667.   global totcardbut
  668.   global totcardfld
  669.   global numcard
  670.   global numcardbut
  671.   global numcardfld
  672.  
  673.   put item numcard of totcardfld into card field "Totcardfld"
  674.   if  item numcard of totcardfld > 0 then
  675.     put 1 into numcardfld
  676.   else
  677.     put 0 into numcardfld
  678.   end if
  679.   put numcardfld into card field "Numcardfld"
  680.  
  681.   put item numcard of totcardbut into card field "Totcardbut"
  682.   if  item numcard of totcardbut > 0 then
  683.     put 1 into numcardbut
  684.   else
  685.     put 0 into numcardbut
  686.   end if
  687.   put numcardbut into card field "Numcardbut"
  688. end mouseup
  689.  
  690.  
  691.  
  692. -- part 36 (button)
  693. -- low flags: 00
  694. -- high flags: 0000
  695. -- rect: left=383 top=54 right=64 bottom=394
  696. -- title width / last selected line: 0
  697. -- icon id / first selected line: 0 / 0
  698. -- text alignment: 1
  699. -- font id: 0
  700. -- text size: 12
  701. -- style flags: 0
  702. -- line height: 16
  703. -- part name: bb
  704. ----- HyperTalk script -----
  705. on mousestilldown
  706.   global totcard
  707.   global totcardbut
  708.   global totcardfld
  709.   global numcard
  710.   global numcardbut
  711.   global numcardfld
  712.  
  713.   if numcard > 1 then
  714.     subtract 1 from numcard
  715.     put numcard into card field "Numcard"
  716.   end if
  717.  
  718. end mousestilldown
  719.  
  720. on mouseup
  721.   global totcard
  722.   global totcardbut
  723.   global totcardfld
  724.   global numcard
  725.   global numcardbut
  726.   global numcardfld
  727.  
  728.   put item numcard of totcardfld into card field "Totcardfld"
  729.   if  item numcard of totcardfld > 0 then
  730.     put 1 into numcardfld
  731.   else
  732.     put 0 into numcardfld
  733.   end if
  734.   put numcardfld into card field "Numcardfld"
  735.  
  736.   put item numcard of totcardbut into card field "Totcardbut"
  737.   if  item numcard of totcardbut > 0 then
  738.     put 1 into numcardbut
  739.   else
  740.     put 0 into numcardbut
  741.   end if
  742.   put numcardbut into card field "Numcardbut"
  743. end mouseup
  744.  
  745.  
  746.  
  747. -- part 37 (button)
  748. -- low flags: 00
  749. -- high flags: 0000
  750. -- rect: left=383 top=65 right=74 bottom=394
  751. -- title width / last selected line: 0
  752. -- icon id / first selected line: 0 / 0
  753. -- text alignment: 1
  754. -- font id: 0
  755. -- text size: 12
  756. -- style flags: 0
  757. -- line height: 16
  758. -- part name: aaa
  759. ----- HyperTalk script -----
  760. on mousestilldown
  761.   global totcard
  762.   global totcardbut
  763.   global totcardfld
  764.   global numcard
  765.   global numcardbut
  766.   global numcardfld
  767.  
  768.  
  769.   if numcardbut < item numcard of totcardbut then
  770.     add 1 to numcardbut
  771.     put numcardbut into card field "Numcardbut"
  772.   end if
  773.  
  774. end mousestilldown
  775.  
  776.  
  777.  
  778.  
  779. -- part 38 (button)
  780. -- low flags: 00
  781. -- high flags: 0000
  782. -- rect: left=383 top=74 right=84 bottom=394
  783. -- title width / last selected line: 0
  784. -- icon id / first selected line: 0 / 0
  785. -- text alignment: 1
  786. -- font id: 0
  787. -- text size: 12
  788. -- style flags: 0
  789. -- line height: 16
  790. -- part name: bb
  791. ----- HyperTalk script -----
  792. on mousestilldown
  793.   global totcard
  794.   global totcardbut
  795.   global totcardfld
  796.   global numcard
  797.   global numcardbut
  798.   global numcardfld
  799.  
  800.   if numcardbut > 1 then
  801.     subtract 1 from numcardbut
  802.     put numcardbut into card field "Numcardbut"
  803.   end if
  804.  
  805. end mousestilldown
  806.  
  807.  
  808.  
  809.  
  810. -- part 39 (button)
  811. -- low flags: 00
  812. -- high flags: 0000
  813. -- rect: left=383 top=94 right=103 bottom=394
  814. -- title width / last selected line: 0
  815. -- icon id / first selected line: 0 / 0
  816. -- text alignment: 1
  817. -- font id: 0
  818. -- text size: 12
  819. -- style flags: 0
  820. -- line height: 16
  821. -- part name: zz
  822. ----- HyperTalk script -----
  823. on mousestilldown
  824.   global totcard
  825.   global totcardbut
  826.   global totcardfld
  827.   global numcard
  828.   global numcardbut
  829.   global numcardfld
  830.  
  831.   if numcardfld > 1 then
  832.     subtract 1 from numcardfld
  833.     put numcardfld into card field "Numcardfld"
  834.   end if
  835.  
  836. end mousestilldown
  837.  
  838.  
  839.  
  840.  
  841. -- part 40 (button)
  842. -- low flags: 00
  843. -- high flags: 0000
  844. -- rect: left=383 top=85 right=95 bottom=394
  845. -- title width / last selected line: 0
  846. -- icon id / first selected line: 0 / 0
  847. -- text alignment: 1
  848. -- font id: 0
  849. -- text size: 12
  850. -- style flags: 0
  851. -- line height: 16
  852. -- part name: aa
  853. ----- HyperTalk script -----
  854. on mousestilldown
  855.   global totcard
  856.   global totcardbut
  857.   global totcardfld
  858.   global numcard
  859.   global numcardbut
  860.   global numcardfld
  861.  
  862.  
  863.   if numcardfld < item totcard of totcardfld then
  864.     add 1 to numcardfld
  865.     put numcardfld into card field "Numcardfld"
  866.   end if
  867.  
  868. end mousestilldown
  869.  
  870.  
  871.  
  872.  
  873. -- part 41 (button)
  874. -- low flags: 00
  875. -- high flags: 8006
  876. -- rect: left=5 top=138 right=153 bottom=153
  877. -- title width / last selected line: 0
  878. -- icon id / first selected line: 0 / 0
  879. -- text alignment: 1
  880. -- font id: 0
  881. -- text size: 12
  882. -- style flags: 0
  883. -- line height: 16
  884. -- part name: Background Button
  885. ----- HyperTalk script -----
  886. on mouseUp
  887.   global ind
  888.   put 3 into ind
  889.   set the hilite of card button "Stack" to false
  890.   set the hilite of card button "Background" to false
  891.   set the hilite of card button "Background Button" to true
  892.   set the hilite of card button "Background Field" to false
  893.   set the hilite of card button "Card" to false
  894.   set the hilite of card button "Card Button" to false
  895.   set the hilite of card button "Card Field" to false
  896. end mouseup
  897.  
  898.  
  899. -- part 42 (button)
  900. -- low flags: 00
  901. -- high flags: 8006
  902. -- rect: left=5 top=152 right=167 bottom=153
  903. -- title width / last selected line: 0
  904. -- icon id / first selected line: 0 / 0
  905. -- text alignment: 1
  906. -- font id: 0
  907. -- text size: 12
  908. -- style flags: 0
  909. -- line height: 16
  910. -- part name: Background Field
  911. ----- HyperTalk script -----
  912. on mouseUp
  913.   global ind
  914.   put 4 into ind
  915.   set the hilite of card button "Stack" to false
  916.   set the hilite of card button "Background" to false
  917.   set the hilite of card button "Background Button" to false
  918.   set the hilite of card button "Background Field" to true
  919.   set the hilite of card button "Card" to false
  920.   set the hilite of card button "Card Button" to false
  921.   set the hilite of card button "Card Field" to false
  922. end mouseup
  923.  
  924.  
  925. -- part 43 (button)
  926. -- low flags: 00
  927. -- high flags: C006
  928. -- rect: left=5 top=180 right=195 bottom=153
  929. -- title width / last selected line: 0
  930. -- icon id / first selected line: 0 / 0
  931. -- text alignment: 1
  932. -- font id: 0
  933. -- text size: 12
  934. -- style flags: 0
  935. -- line height: 16
  936. -- part name: Card Button
  937. ----- HyperTalk script -----
  938. on mouseUp
  939.   global ind
  940.   put 6 into ind
  941.   set the hilite of card button "Stack" to false
  942.   set the hilite of card button "Background" to false
  943.   set the hilite of card button "Background Button" to false
  944.   set the hilite of card button "Background Field" to false
  945.   set the hilite of card button "Card" to false
  946.   set the hilite of card button "Card Button" to true
  947.   set the hilite of card button "Card Field" to false
  948. end mouseup
  949.  
  950.  
  951. -- part 44 (button)
  952. -- low flags: 00
  953. -- high flags: 8006
  954. -- rect: left=5 top=194 right=209 bottom=153
  955. -- title width / last selected line: 0
  956. -- icon id / first selected line: 0 / 0
  957. -- text alignment: 1
  958. -- font id: 0
  959. -- text size: 12
  960. -- style flags: 0
  961. -- line height: 16
  962. -- part name: Card Field
  963. ----- HyperTalk script -----
  964. on mouseUp
  965.   global ind
  966.   put 7 into ind
  967.   set the hilite of card button "Stack" to false
  968.   set the hilite of card button "Background" to false
  969.   set the hilite of card button "Background Button" to false
  970.   set the hilite of card button "Background Field" to false
  971.   set the hilite of card button "Card" to false
  972.   set the hilite of card button "Card Button" to false
  973.   set the hilite of card button "Card Field" to true
  974. end mouseup
  975.  
  976.  
  977. -- part 45 (button)
  978. -- low flags: 00
  979. -- high flags: 8004
  980. -- rect: left=5 top=214 right=241 bottom=151
  981. -- title width / last selected line: 0
  982. -- icon id / first selected line: 0 / 0
  983. -- text alignment: 1
  984. -- font id: 0
  985. -- text size: 12
  986. -- style flags: 0
  987. -- line height: 16
  988. -- part name: Read Script
  989. ----- HyperTalk script -----
  990. on mouseUp
  991.   global stackname
  992.   global totcard
  993.   global totcardbut
  994.   global totcardfld
  995.   global totback
  996.   global totbackbut
  997.   global totbackfld
  998.   global numcard
  999.   global numcardbut
  1000.   global numcardfld
  1001.   global numback
  1002.   global numbackbut
  1003.   global numbackfld
  1004.   global ind
  1005.   global typewrite
  1006.  
  1007.   if ind = 3 and  numbackbut = 0 then
  1008.     Play "Boing" "E C"
  1009.     answer "No button in that Background!"
  1010.     exit mouseup
  1011.   end if
  1012.  
  1013.   if ind = 4 and  numbackfld = 0 then
  1014.     Play "Boing" "E C"
  1015.     answer "No Field in that Background!"
  1016.     exit mouseup
  1017.   end if
  1018.  
  1019.   if ind = 6 and  numcardbut = 0 then
  1020.     Play "Boing" "E C"
  1021.     answer "No button on that Card!"
  1022.     exit mouseup
  1023.   end if
  1024.  
  1025.   if ind = 7 and  numcardfld = 0 then
  1026.     Play "Boing" "E C"
  1027.     answer "No Field on that Card!"
  1028.     exit mouseup
  1029.   end if
  1030.  
  1031.   put the long name of this stack into tempname
  1032.  
  1033.   go stackname
  1034.   -- set lockscreen to true
  1035.  
  1036.   if ind = 1 then
  1037.     put script of this stack into tempScript
  1038.   else
  1039.     if ind = 2 then
  1040.       go background numback
  1041.       put script of background numback into tempScript
  1042.     else
  1043.       if ind = 3 then
  1044.         go background numback
  1045.         put script of background button numbackbut into tempScript
  1046.       else
  1047.         if ind = 4 then
  1048.           go background numback
  1049.           put script of background field numbackfld into tempScript
  1050.         else
  1051.           if ind = 5 then
  1052.             go card numcard
  1053.             put script of card numcard into tempScript
  1054.           else
  1055.             if ind = 6 then
  1056.               go card numcard
  1057.               put script of card button numcardbut into tempScript
  1058.             else
  1059.               go card numcard
  1060.               put script of card field numcardfld into tempScript
  1061.             end if
  1062.           end if
  1063.         end if
  1064.       end if
  1065.     end if
  1066.   end if
  1067.  
  1068.   if tempScript is empty then
  1069.     put "--       No Script      --" into tempScript
  1070.   end if
  1071.   put return after tempScript
  1072.  
  1073.   go tempname
  1074.  
  1075.   set userlevel to 5
  1076.   if typewrite = 1 then
  1077.     put tempScript before card field "Script"
  1078.   else
  1079.     if typewrite = 2 then
  1080.       put tempScript into card field "Script"
  1081.     else
  1082.       put tempScript after card field "Script"
  1083.     end if
  1084.   end if
  1085.  
  1086.  
  1087.  
  1088.   show menubar
  1089.   hide message
  1090.   set lockscreen to false
  1091. end mouseUp
  1092.  
  1093.  
  1094.  
  1095. -- part 46 (button)
  1096. -- low flags: 00
  1097. -- high flags: 8004
  1098. -- rect: left=5 top=243 right=270 bottom=151
  1099. -- title width / last selected line: 0
  1100. -- icon id / first selected line: 0 / 0
  1101. -- text alignment: 1
  1102. -- font id: 0
  1103. -- text size: 12
  1104. -- style flags: 0
  1105. -- line height: 16
  1106. -- part name: Write Script
  1107. ----- HyperTalk script -----
  1108. on mouseUp
  1109.   global stackname
  1110.   global totcard
  1111.   global totcardbut
  1112.   global totcardfld
  1113.   global totback
  1114.   global totbackbut
  1115.   global totbackfld
  1116.   global numcard
  1117.   global numcardbut
  1118.   global numcardfld
  1119.   global numback
  1120.   global numbackbut
  1121.   global numbackfld
  1122.   global ind
  1123.   global typewrite
  1124.  
  1125.   put card field "Script" into tempScript
  1126.  
  1127.   if last character of tempScript <> return then
  1128.     put return after tempScript
  1129.   end if
  1130.  
  1131.   if  tempScript contains "No Script" then
  1132.     put empty into tempScript
  1133.   end if
  1134.  
  1135.   put the long name of this stack into tempname
  1136.  
  1137.   go stackname
  1138.   set lockscreen to true
  1139.  
  1140.   if ind = 1 then
  1141.     put "the script of this stack" into target2
  1142.   end if
  1143.  
  1144.   if ind = 2 then
  1145.     put "go background numback" into target1
  1146.     put "the script of background numback" into target2
  1147.   end if
  1148.  
  1149.   if ind = 3 then
  1150.     put "go background numback" into target1
  1151.     put "the script of background button numbackbut" into target2
  1152.   end if
  1153.  
  1154.   if ind = 4 then
  1155.     put "go background numback" into target1
  1156.     put "the script of background field numbackfld" into target2
  1157.   end if
  1158.  
  1159.   if ind = 5 then
  1160.     put "go card numcard" into target1
  1161.     put "the script of card numcard" into target2
  1162.   end if
  1163.  
  1164.   if ind = 6 then
  1165.     put "go card numcard" into target1
  1166.     put "the script of card button numcardbut" into target2
  1167.   end if
  1168.  
  1169.   if ind = 7 then
  1170.     put "go card numcard" into target1
  1171.     put "the script of card field numcardfld" into target2
  1172.   end if
  1173.  
  1174.   if ind <> 1 then
  1175.     do target1
  1176.   end if
  1177.  
  1178.   if typewrite = 1 then
  1179.     put "put" && target2 && "after tempScript" & return into orders1
  1180.     do orders1
  1181.   end if
  1182.  
  1183.   if typewrite = 3 then
  1184.     put "put" && target2 && "before tempScript" & return into orders1
  1185.     do orders1
  1186.   end if
  1187.  
  1188.   put "set" && target2 && "to tempScript" into orders2
  1189.   do orders2
  1190.  
  1191.   go tempname
  1192.   set userlevel to 5
  1193.   show menubar
  1194.   hide message
  1195.   set lockscreen to false
  1196.  
  1197. end mouseUp
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203. -- part 47 (button)
  1204. -- low flags: 00
  1205. -- high flags: 0006
  1206. -- rect: left=6 top=294 right=309 bottom=24
  1207. -- title width / last selected line: 0
  1208. -- icon id / first selected line: 0 / 0
  1209. -- text alignment: 1
  1210. -- font id: 0
  1211. -- text size: 12
  1212. -- style flags: 0
  1213. -- line height: 16
  1214. -- part name: appendbefore
  1215. ----- HyperTalk script -----
  1216. on mouseUp
  1217.   global typewrite
  1218.   put 1 into typewrite
  1219.   set the hilite of card button "appendbefore" to true
  1220.   set the hilite of card button "overwrite" to false
  1221.   set the hilite of card button "appendafter" to false
  1222.  
  1223. end mouseUp
  1224.  
  1225.  
  1226.  
  1227. -- part 50 (button)
  1228. -- low flags: 00
  1229. -- high flags: A004
  1230. -- rect: left=5 top=273 right=293 bottom=151
  1231. -- title width / last selected line: 0
  1232. -- icon id / first selected line: 0 / 0
  1233. -- text alignment: 1
  1234. -- font id: 0
  1235. -- text size: 12
  1236. -- style flags: 0
  1237. -- line height: 16
  1238. -- part name: Clear Script Buffer
  1239. ----- HyperTalk script -----
  1240. on mouseUp
  1241.   put empty into card field "Script"
  1242. end mouseUp
  1243.  
  1244.  
  1245.  
  1246. -- part 48 (button)
  1247. -- low flags: 00
  1248. -- high flags: 4006
  1249. -- rect: left=6 top=308 right=323 bottom=24
  1250. -- title width / last selected line: 0
  1251. -- icon id / first selected line: 0 / 0
  1252. -- text alignment: 1
  1253. -- font id: 0
  1254. -- text size: 12
  1255. -- style flags: 0
  1256. -- line height: 16
  1257. -- part name: overwrite
  1258. ----- HyperTalk script -----
  1259. on mouseUp
  1260.   global typewrite
  1261.   put 2 into typewrite
  1262.   set the hilite of card button "appendbefore" to false
  1263.   set the hilite of card button "overwrite" to true
  1264.   set the hilite of card button "appendafter" to false
  1265.  
  1266. end mouseUp
  1267.  
  1268.  
  1269.  
  1270. -- part 49 (button)
  1271. -- low flags: 00
  1272. -- high flags: 0006
  1273. -- rect: left=6 top=322 right=337 bottom=24
  1274. -- title width / last selected line: 0
  1275. -- icon id / first selected line: 0 / 0
  1276. -- text alignment: 1
  1277. -- font id: 0
  1278. -- text size: 12
  1279. -- style flags: 0
  1280. -- line height: 16
  1281. -- part name: appendafter
  1282. ----- HyperTalk script -----
  1283. on mouseUp
  1284.   global typewrite
  1285.   put 3 into typewrite
  1286.   set the hilite of card button "appendbefore" to false
  1287.   set the hilite of card button "overwrite" to false
  1288.   set the hilite of card button "appendafter" to true
  1289.  
  1290. end mouseUp
  1291.  
  1292.  
  1293.  
  1294. -- part 53 (button)
  1295. -- low flags: 00
  1296. -- high flags: 0000
  1297. -- rect: left=127 top=315 right=337 bottom=149
  1298. -- title width / last selected line: 0
  1299. -- icon id / first selected line: 26635 / 26635
  1300. -- text alignment: 1
  1301. -- font id: 0
  1302. -- text size: 12
  1303. -- style flags: 0
  1304. -- line height: 16
  1305. -- part name: 
  1306. ----- HyperTalk script -----
  1307. on mouseUp
  1308.   go next
  1309. end mouseUp
  1310.  
  1311.  
  1312.  
  1313. -- part contents for card part 2
  1314. ----- text -----
  1315. stack "HD40:Hypercard:Stacks Folder:Hyper Tools:Small tools:HyperZap v1.3"
  1316.  
  1317. -- part contents for card part 4
  1318. ----- text -----
  1319. 1
  1320.  
  1321. -- part contents for card part 5
  1322. ----- text -----
  1323. 3
  1324.  
  1325. -- part contents for card part 10
  1326. ----- text -----
  1327. 1
  1328.  
  1329. -- part contents for card part 14
  1330. ----- text -----
  1331. 2
  1332.  
  1333. -- part contents for card part 18
  1334. ----- text -----
  1335. 0
  1336.  
  1337. -- part contents for card part 19
  1338. ----- text -----
  1339. 0
  1340.  
  1341. -- part contents for card part 21
  1342. ----- text -----
  1343. 5
  1344.  
  1345. -- part contents for card part 20
  1346. ----- text -----
  1347. 2
  1348.  
  1349. -- part contents for card part 26
  1350. ----- text -----
  1351. 0
  1352.  
  1353. -- part contents for card part 27
  1354. ----- text -----
  1355. 1
  1356.  
  1357. -- part contents for card part 28
  1358. ----- text -----
  1359. 1
  1360.  
  1361. -- part contents for card part 25
  1362. ----- text -----
  1363. 0
  1364.  
  1365. -- part contents for card part 3
  1366. ----- text -----
  1367. -- hello
  1368. on mouseUp
  1369.   put filename("STAK") into fname
  1370.   if fname is empty then exit mouseUp
  1371.   deprotect fname
  1372.   if the result is empty
  1373.   play harpsichord "ee c"
  1374.   then answer "HyperZap Has Removed The Password!" with "OK"
  1375.   else if the result is -44
  1376.   play boing
  1377.   flash 2
  1378.   then answer "I'm Sorry! Your Disk Is Locked!"
  1379.   else if the result is -49
  1380.   play boing
  1381.   flash 2
  1382.   then answer "I'm Sorry! This Stack Is In Use!"
  1383.   else answer "I'm Sorry! Unexpected File System Error: " & the result with "OK"
  1384. end mouseUp
  1385.  
  1386.  
  1387.